﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneDrive.Model
{
    /// <summary>
    /// 房屋基本信息
    /// </summary>
    public class HouseInfo
    {
        /// <summary>
        /// 房屋ID
        /// </summary>
        public int HouseID { get; set; }
        /// <summary>
        /// 小区ID
        /// </summary>
        public int CommunityID { get; set; }
        /// <summary>
        /// 经纪人ID
        /// </summary>
        public int AgentID { get; set; }
        /// <summary>
        /// 发布标题
        /// </summary>
        public string Tittle { get; set; }
        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime ReleaseTime { get; set; }
        /// <summary>
        /// 户型
        /// </summary>
        public string HouseHold { get; set; }
        /// <summary>
        /// 建筑面积
        /// </summary>
        public float BuiltupArea { get; set; }
        /// <summary>
        /// 套内面积
        /// </summary>
        public float InnerArea { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        public string Floor { get; set; }
        /// <summary>
        /// 朝向
        /// </summary>
        public string Orientation { get; set; }
        /// <summary>
        /// 房屋类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 装修程度
        /// </summary>
        public string Decorate { get; set; }
        /// <summary>
        /// 房本年限
        /// </summary>
        public string Limit { get; set; }
        /// <summary>
        /// 是否唯一住房 0：否  1：是
        /// </summary>
        public int OnlyHouse { get; set; }
        /// <summary>
        /// 总价（万元）
        /// </summary>
        public float TotalPrice { get; set; }
        /// <summary>
        /// 产权年限
        /// </summary>
        public int PropertyYears { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public Platform Platform { get; set; }

    }

    /// <summary>
    /// 房屋扩展信息
    /// </summary>
    public class HouseExtInfo
    {
        /// <summary>
        /// 房屋ID
        /// </summary>
        public double HouseID { get; set; }
        /// <summary>
        /// 核心卖点
        /// </summary>
        public string SellingPoint { get; set; }
        /// <summary>
        /// 业主心态
        /// </summary>
        public string SellingReason { get; set; }
    }

    /// <summary>
    /// 数据来源
    /// </summary>
    public enum Platform
    {
        Ajk,    //安居客
        Lj,     //链家
        Bk      //贝壳
    }
}
